<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="jstl-fn" prefix="fn" %>
<%@ taglib prefix="c" uri="jstl"%>
<jsp:include page="Templates/metas.jsp"/>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->
		
		<jsp:include page="Templates/headerEng.jsp"/>
		
		<div id="container_aside">
		<span id="node_chat_njsd" class="ico_chat"></span>
       <jsp:include page="Templates/submenu_miredpostEng.jsp"/>
       
        <section id="container_right">        
			<h1 class="mine_title"><img src="img/shadow_title.png" class="shadow_mineTit">MY REDPOST</h1>
				<h2 class="subtitle txt_blue underline">MY ORDER HISTORY <span class="left_buttons"><img alt="ico_verDatella" src="img/ico_verDatella.png"> <span>See details</span> &ensp; <img alt="btn_close" src="img/btn_close.png"> <span>Delete Shipment</span></span></h2>
				<p class="txt">
					In this option you can view the history option of your orders that have been delivered to your residence or any other address you have selected as additional.
				</p>
				<br>
				<table class="table_envios">
					<thead>
						<tr>
							<th width="40%">DESCRIPTION</th>
							<th width="20%">SENDER</th>
							<th width="10%">WAY BILL NO.</th>
							<th width="10%">ARRIVAL DATE</th>
							<th width="10%">FINAL PAYMENT</th>
							<th width="10%">MORE</th>
						</tr>
					</thead>
					
					<c:choose>
						<c:when test="${Num ne 0}">
							<c:set value="0" var="print"/>
							<c:forEach items="${Arribos}" var="arr" varStatus="arrSt">
									<c:if test="${print eq 0}">
									<tr>
									</c:if>							
									<c:if test="${print eq 1}">
									<tr class="alternate">
									</c:if>
									<td>${arr.descripcion}</td>
									<td>${arr.status}</td>
									<td>${arr.gArribo}</td>
									<td>${arr.fecha}</td>
									<td>${arr.costoTotal}</td>
									<td align="center">
										<!-- <a href="mis_envios_detalle.asp"><img alt="ico_verDatella" src="img/ico_verDatella.png"></a> -->
										<html:form action="mis_envios_detalle.do" method="post" styleId="detalle">
											<html:hidden property="num" value="${arr.cveArribo}"/>
											<html:hidden property="bandera" value="2"/>
											<html:image alt="ico_verDatella" src="img/ico_verDatella.png"/>
										</html:form>
									<!-- <a href="#"><img alt="btn_close" src="img/btn_close.png"></a> -->	
										<html:form action="mis_envios_eliminar" method="post" styleId="eliminar">
											<html:hidden property="num" value="${arr.cveArribo}"/>
											<html:image onclick="return confirm('Do you want to permanently delete this item?');"  alt="btn_close" src="img/btn_close.png" />
										</html:form>
										
									</td>
								</tr>
									<c:if test="${print eq 0}">
									<c:set value="1" var="print"/>
									</c:if>							
									<c:if test="${print eq 1}">
									<c:set value="0" var="print"/>
									</c:if>							
							</c:forEach>
						</c:when>
						<c:otherwise>
							<tr>
								<td colspan="5" align="center">No records</td>
							</tr>
						</c:otherwise>
					</c:choose>
					<!--  <tr>
						<td>Terramar Women's Thermasilk Scoop</td>
						<td>Amazon.com Inc.</td>
						<td>000000000</td>
						<td>2/06/ 2012</td>
						<td>000000000</td>
						<td align="center">
							<a href="mis_envios_detalle.asp"><img alt="ico_verDatella" src="img/ico_verDatella.png"></a>
							<a href="#"><img alt="btn_close" src="img/btn_close.png"></a>
						</td>
					</tr>
					<tr class="alternate">
						<td>Terramar Women's Thermasilk Scoop</td>
						<td>Amazon.com Inc.</td>
						<td>000000000</td>
						<td>2/06/ 2012</td>
						<td>000000000</td>
						<td align="center">
							<a href="mis_envios_detalle.asp"><img alt="ico_verDatella" src="img/ico_verDatella.png"></a>
							<a href="#"><img alt="btn_close" src="img/btn_close.png"></a>
						</td>
					</tr>
					<tr>
						<td>Terramar Women's Thermasilk Scoop</td>
						<td>Amazon.com Inc.</td>
						<td>000000000</td>
						<td>2/06/ 2012</td>
						<td>000000000</td>
						<td align="center">
							<a href="mis_envios_detalle.asp"><img alt="ico_verDatella" src="img/ico_verDatella.png"></a>
							<a href="#"><img alt="btn_close" src="img/btn_close.png"></a>
						</td>
					</tr>
					<tr class="alternate">
						<td>Terramar Women's Thermasilk Scoop</td>
						<td>Amazon.com Inc.</td>
						<td>000000000</td>
						<td>2/06/ 2012</td>
						<td>000000000</td>
						<td align="center">
							<a href="mis_envios_detalle.asp"><img alt="ico_verDatella" src="img/ico_verDatella.png"></a>
							<a href="#"><img alt="btn_close" src="img/btn_close.png"></a>
						</td>
					</tr>
					<tr>
						<td>Terramar Women's Thermasilk Scoop</td>
						<td>Amazon.com Inc.</td>
						<td>000000000</td>
						<td>2/06/ 2012</td>
						<td>000000000</td>
						<td align="center">
							<a href="mis_envios_detalle.asp"><img alt="ico_verDatella" src="img/ico_verDatella.png"></a>
							<a href="#"><img alt="btn_close" src="img/btn_close.png"></a>
						</td>
					</tr> -->
				</table>
				
        </section>
        <span class="clear"></span>
        </div>
        
<jsp:include page="Templates/footerEng.jsp"/>